﻿using System;
using System.Web.UI;
using VitCode.Web.UI.WebControls;


namespace AMS.Web.BackStageManagement
{
    public partial class MainTop : Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.Cookies["Code"] != null)
                labelCode.Text = Request.Cookies["Code"].Value;
            if (Request.Cookies["Name"] != null)
                labelName.Text = Server.UrlDecode(Request.Cookies["Name"].Value);
        }

        protected void btnUpdatePassword_Click(object sender, EventArgs e)
        {
            var win = new Window(Page, "密码修改")
            {
                Height = 260,
                Width = 460,
                Scrollbars = true,
                Status = true,
                Location = true
            };
            win.ShowModalDialog("../BackStageManagement/PassSelf.aspx?Type=Self", new string[] { "hdCheckInfo" });
        }
    }
}
